package com.game.autoTool.project.web.service.impl;

import com.game.autoTool.project.web.domain.entity.GameFunctionOperateFlow;
import com.game.autoTool.project.web.mapper.GameFunctionOperateFlowMapper;
import com.game.autoTool.project.web.service.GameFunctionOperateFlowService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wuyu
 * @description 功能操作流程
 * @date 2025-04-14
 */
@Service
public class GameFunctionOperateFlowServiceImpl implements GameFunctionOperateFlowService {

    @Resource
    private GameFunctionOperateFlowMapper gameFunctionOperateFlowMapper;

    @Transactional(rollbackFor = Exception.class)
    @Override
    public Integer record(GameFunctionOperateFlow functionOperateFlow) {
        return gameFunctionOperateFlowMapper.insert(functionOperateFlow);
    }

    @Override
    public List<GameFunctionOperateFlow> selectByFunctionItemId(Long functionItemId) {
        return gameFunctionOperateFlowMapper.selectByFunctionItemId(functionItemId);
    }
}